//SPDX-FileCopyrightText: Copyright 2025-2025 深圳市同心圆网络有限公司
//SPDX-License-Identifier: GPL-3.0-only

package triger_dao

import "go.mongodb.org/mongo-driver/mongo"

var TrigerInfoDao *_TrigerInfoDao
var MsgIndexDao *_MsgIndexDao
var MsgContentDao *_MsgContentDao

func InitDao(mgoDb *mongo.Database) (err error) {
	TrigerInfoDao, err = newTrigerInfoDao(mgoDb)
	if err != nil {
		return
	}
	MsgIndexDao, err = newMsgIndexDao(mgoDb)
	if err != nil {
		return
	}
	MsgContentDao, err = newMsgContentDao(mgoDb)
	if err != nil {
		return
	}
	return
}
